package com.hdu.point_offer;

public class lcr191 {
    class Solution {
        public int[] statisticalResult(int[] arrayA) {
            int[] arr = new int[arrayA.length];
            int prev = 1;
            for (int i = 0; i < arrayA.length; i++)
            {
                arr[i] = prev;
                prev *= arrayA[i];
            }
            prev = 1;
            for (int i = arrayA.length - 1; i >= 0; i--)
            {
                arr[i] *= prev;
                prev *= arrayA[i];
            }
            return arr;
        }
    }
}
